#ifndef LEITOR_HEADER
#define LEITOR_HEADER

/* struct used to read a file */
typedef struct reader_type {
	FILE * file_pointer; // pointer to the file being read

	/* last, current and next chars */
	char previous; // last char
	char current;
	char next;

	/* column and line of the cursor in the file */
	int line;
	int column;
} Reader;


/* global variable: reading head */
Reader reading_head;


/*****************************************************************************
 name: read_next_char
 purpose: read the next char from the file being scanned.
 args:
 returns:
 *****************************************************************************/
void read_next_char();

/*****************************************************************************
 name: init_reader
 purpose: initialize the file reader.
 args: filename
 returns:
 *****************************************************************************/
void init_reader(char *filename);



#endif
